package com.mj.factory.totalSchuedule;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * Created by Administrator on 2017/3/16.
 */
public interface TotalScheduleDao extends JpaRepository<TotalSchedule,Long>,
        JpaSpecificationExecutor<TotalSchedule>{
//    @Query(value = "delete from TotalSchedule t where t.drawingNumber=:drawingNumber", nativeQuery = true)
//    @Modifying
//    void deleteTotalScheduleByDrawingNumber(String drawingNumber);

    TotalSchedule findByDrawingNumber(String drawingNumber);
}
